package logic

import (
	"Go_Advanced/bluebell/dao/mysql"
	"Go_Advanced/bluebell/models"
)

func GetCommunityList()([]*models.Community,error){
	//查数据库，查找所有的community并返回
	return mysql.GetCommunityList()
}

func GetCommunityDetail(id int64)(*models.CommunityDetail,error){
	return  mysql.GetCommunityDetailByID(id)
}